﻿<Window x:Class="GamePlugin.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:localControl="clr-namespace:GamePlugin.Controls"
        Title="Diablo Helper" Height="824" Width="843" ResizeMode="CanMinimize" WindowStyle="SingleBorderWindow" Closing="Window_Closing">

    <Window.CommandBindings>
        <CommandBinding Command="New" Executed="LaunchCommand_Executed" />
        <CommandBinding Command="Stop" Executed="StopCommand_Executed" />
    </Window.CommandBindings>

    <Window.InputBindings>
        <KeyBinding Command="New"  Key="F3" />
        <KeyBinding Command="Stop"  Key="F4" />
    </Window.InputBindings>
    
    <StackPanel>
        <Menu Grid.Row="0" HorizontalAlignment="Center" Name="menu1" VerticalAlignment="Top" Width="814">
            <MenuItem Header="存儲">
                <MenuItem Header="存入" Click="Save_Click" />
                <MenuItem Header="讀取" Click="Load_Click" />
            </MenuItem>
            <MenuItem Header="操作">
                <MenuItem Header="啟動" Command="New" InputGestureText="F3"/>
                <MenuItem Header="停止" Command="Stop" InputGestureText="F4"/>
            </MenuItem>
        </Menu>
        <TabControl Height="762" Name="tabControl1" Width="820">
            <TabItem Header="Auction" Name="tabItem0">
                <localControl:AuctionControl x:Name="AuctionControl" />
            </TabItem>
            <TabItem Header="Main" Name="tabItem1">
                <StackPanel Height="737" Name="stackPanel1" Width="816">
                    <StackPanel Height="498" Name="stackPanel2" Width="820" Orientation="Horizontal">
                        <localControl:SearchInformation x:Name="searchInformation" Width="400"/>
                        <localControl:SearchInfoList x:Name="searchInfoList" Width="400"/>
                    </StackPanel>
                    <StackPanel Height="236" Name="stackPanel3" Width="821" Orientation="Horizontal">
                        <localControl:SearchOptions x:Name="searchOptions1" />
                        <localControl:StateLog x:Name="stateLog1" Width="415" />
                    </StackPanel>
                </StackPanel>
            </TabItem>
            <TabItem Header="Property" Name="tabItem2">
                <localControl:PropertyList x:Name="propertyList1" />
            </TabItem>
        </TabControl>
    </StackPanel>
</Window>
